<extend name="_Layout/layout"/>

<block name="main">
<div class="m-right">
 	
	<div data-am-widget="tabs" class="am-tabs am-tabs-d2" >
      	<div class="am-tabs-bd am-text-sm">
      	<h2 style="border-bottom:1px solid #e1e1df;">委托管理</h2>
          	<div data-tab-panel-0 class="am-tab-panel am-active">
          		<table class="am-table am-table-striped am-table-bordered am-table-compact" id="example">
				  	<thead>
				  		<tr>
						    <th>委托时间</th>
						    <th>币种</th>
						    <th>类型</th>
						    <th>委托数量</th>
						    <th>委托价格</th>
						    <th>成交数量</th>
						    <th>尚未成交</th>
						    <th>状态</th>
				  		</tr>
				  	</thead>
				  	<tbody>
				  	<volist name='list' id='v'>
				  	<if condition="$key % 2 eq 0">
				  		<tr class="odd gradeX">
				  		<else/>
				  		<tr class="even gradeC">
				  		</if>
				    		<td>{$v.ctime|time_format=###,'Y-m-d H:i:s'}</td>
				    		<td>{$v.name}</td>
				   	 		<td><if condition="$v['type'] eq 'sell'">卖<else/>买</if></td>
				    		<td>{$v.wtnum}</td>
				    		<td>{$v.price}</td>
				    		<td>{$v.cjnum}</td>
				    		<td><php>echo ($v['wtnum']-$v['cjnum'])</php></td>
				    		<td><if condition="$v['status'] eq 0">挂单<elseif condition="$v['status'] eq 1"/>部分成交<elseif condition="$v['status'] eq 2"/>已完成<else/>撤销</if></td>
				
				  		</tr>
				  		</volist>
				  	</tbody>
				</table>
          	</div>
      	</div>
  	</div>
</div>	
</block>